// 导入express框架
const express = require('express');
// 创建路由实例
const router = express.Router();
// 导入登录相关的处理函数
const applyHandler = require('../router_handler/apply.js');

//上传文件
router.post('/uploadFile',applyHandler.uploadFile);
//文件绑定账号
router.post('/fileBindAccount',applyHandler.fileBindAccount);
//申请助学金
router.post('/applyBursary',applyHandler.applyBursary);
//小组审核接口
router.post('/groupAudit',applyHandler.groupAudit);
//辅导员审核接口
router.post('/counselorAudit',applyHandler.counselorAudit);
//院领导审核
router.post('/deanAudit',applyHandler.deanAudit);
//查看助学金申请列表接口
router.post('/getBursaryApplications',applyHandler.getBursaryApplications);
//更新助学金申请信息接口
router.post('/updateBursaryApplication',applyHandler.updateBursaryApplication);
//监听分页查询助学金申请列表
router.post('/getBursaryByPage',applyHandler.getBursaryByPage);
//根据编号获取助学金申请表详情接口
router.post('/getBursaryById',applyHandler.getBursaryById);
//查询助学金申请信息返回文件链接
router.post('/getBursaryFileUrl',applyHandler.getBursaryFileUrl);
//申请奖学金
router.post('/applyScholarship',applyHandler.applyScholarship);
//监听分页查询奖学金申请列表
router.post('/getScholarshipByPage',applyHandler.getScholarshipByPage);
// 根据编号获取申请表详情接口
router.post('/getScholarById',applyHandler.getScholarById);
//查看个人奖学金申请列表接口
router.post('/getScholarshipApplications',applyHandler.getScholarshipApplications);
// 更新奖学金申请信息接口
router.post('/updateScholarshipApplication',applyHandler.updateScholarshipApplication);
//删除指定的助学金申请
router.post('/deleteBursaryApplication',applyHandler.deleteBursaryApplication);
//删除指定的奖学金申请
router.post('/deleteScholarshipApplication',applyHandler.deleteScholarshipApplication);
// 生成验证码并发送
router.post('/sendVerificationCode',applyHandler.sendVerificationCode);
// 导出路由模块
module.exports = router;